package com.cskaoyan.bean.vo;

import com.cskaoyan.bean.pojo.MarketBrand;
import com.cskaoyan.service.BrandService;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * 创建日期: 2022/04/06 21:35
 *
 * @author HanWeiqi
 */
@NoArgsConstructor
@Data
public class BrandListVO {

    private Integer total;
    private Integer pages;
    private Integer limit;
    private Integer page;
    private List<MarketBrand> list;

    public static BrandListVO data(long total,Integer pages,Integer limit,Integer page,List list) {
        BrandListVO brandListVO = new BrandListVO();
        brandListVO.setTotal((int) total);
        brandListVO.setPages(pages);
        brandListVO.setPage(page);
        brandListVO.setLimit(limit);
        brandListVO.setList(list);
        return brandListVO;
    }
}
